import { MockMethod } from 'vite-plugin-mock';
import draft from './draft.json';
export default [
  {
    url: '/workflows/draft',
    method: 'get',
    response: ({ query }) => {
      return draft;
    },
  },
  {
    url: '/workflows/draft',
    method: 'post',
    response: ({ body }) => {
      return {
        result: 'success',
        hash: body.hash,
        updated_at: Date.now(),
      };
    },
  },
] as MockMethod[];
